package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/***********************************************************************
 * Module:  Repertory.java
 * Author:  Tino
 * Purpose: Defines the Class Repertory
 ***********************************************************************/

/**
 * 仓库
 * 
 * @pdOid 0c2d4f9d-dada-4fdf-acd0-a18c656cba20
 */
@Entity
@Table(name = "RKGL_REPERTORY")
public class Repertory extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1893626037185472377L;
	/**
	 * 仓库名称
	 * 
	 * @pdOid 438c7830-74f5-4462-ba9e-efa94a91dc8e
	 */
	private String name;
	/**
	 * 经销商
	 * 
	 */
	private User user;
	/**
	 * 是否删除
	 * 
	 */
	private Boolean isDelete;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	public Repertory() {
		super();
	}

	public Repertory(Long id) {
		super(id);
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_ID")
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Column(name = "IS_DELETE")
	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}